﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WyUnity.Utility
{
    public static class SecurityUtil
    {

        /// <summary>
        /// 加密用户密码
        /// </summary>
        public static string EncodePwd(string hashedpwd, DateTime datetime)
        {
            string str = hashedpwd + datetime.ToString("yyyyMMddhhmmss");
            return Hash(str);
        }
        public static string Hash(string str)
        {
            return Util.HashString(str);
        }
    }
}
